Tegra: enable -nostdlib flag
authorVarun Wadekar <[email protected]>
Thu, 7 Sep 2017 00:17:12 +0000 (17:17 -0700)
committerVarun Wadekar <[email protected]>
Wed, 23 Jan 2019 18:31:15 +0000 (10:31 -0800)
This patch enables the '-nostdlib' flag to instruct the compiler
to not use the standard system libraries and startup files.

Change-Id: Ibf34856f7579ed686280cee19c35d08448cf921c
Signed-off-by: Varun Wadekar <[email protected]>
plat/nvidia/tegra/platform.mk

index ac110cc059d1404cfb2c61bb45709b908d89374c..614d2a26db1c310d53ecb5f80fc12ee3d3196ebb 100644 (file)
@@ -40,5 +40,5 @@ include ${SOC_DIR}/platform_${TARGET_SOC}.mk
 # modify BUILD_PLAT to point to SoC specific build directory
 BUILD_PLAT     :=      ${BUILD_BASE}/${PLAT}/${TARGET_SOC}/${BUILD_TYPE}
 
-# enable signed comparison checks
-TF_CFLAGS      += -Wsign-compare
+# platform cflags (enable signed comparisons, disable stdlib)
+TF_CFLAGS      += -Wsign-compare -nostdlib